package kuangshenshuo;

public class For {
    public static void main(String[] args) {

        int a=0;
        int b=-1;
        int sum1=0;
        int sum2=0;
        for (int i = 0; i < 100; i++) {
            if (i%2==0){
                a+=2;
                sum1+=a;
                System.out.println(a);
                System.out.println("--------");
            }else {
                b+=2;
                sum2+=b;
                System.out.println(b);
                System.out.println("!!!!!!!!!");
            }

        }
        System.out.println(sum1);
        System.out.println(sum2);
        System.out.println(sum1+sum2);
    }
}
